package com.formulas.component.extension;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 扩展仓库
 * @author yiwannuofulasi
 * @date 2023/6/12 16:38
 */
@Component
public class ExtensionRepository {

    /**
     * 获取扩展协调（ExtensionCoordinate）为key,扩展点（ExtensionPointI）为value的扩展仓库（Map）集合
     * @return Map<ExtensionCoordinate, ExtensionPointI>
     */
    public Map<ExtensionCoordinate, ExtensionPointI> getExtensionRepo() {
        return extensionRepo;
    }

    /**扩展仓库 Map<ExtensionCoordinate, ExtensionPointI>**/
    private Map<ExtensionCoordinate, ExtensionPointI> extensionRepo = new HashMap<>();
}
